/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Eventlisteners;

import java.util.Observable;
import java.util.Observer;

public class LogEvent extends Observable implements Observer{

    public LogEvent(){}

    public void createEvent(String logMessage){
        this.setChanged();
        this.notifyObservers(logMessage);
    }

    public void update(Observable o, Object o1) {
        if(o1 instanceof String)
            this.createEvent((String)o1);
    }
}
